package com.geek.aop.services.impl;

import com.geek.aop.services.CalculateService;
import org.springframework.stereotype.Service;

@Service
public class CalculateServiceImpl implements CalculateService {

    /**
     * 加法
     */
    @Override
    public double add(double a, double b) {
        System.out.println("加法");
        return a + b;
    }

    /**
     * 减法
     */
    @Override
    public double sub(double a, double b) {
        System.out.println("减法");
        return a - b;
    }

    /**
     * 乘法
     */
    @Override
    public double multi(double a, double b) {
        System.out.println("乘法");
        return a * b;
    }

    /**
     * 除法
     */
    @Override
    public double div(double a, double b) {
        System.out.println("除法");
        return a / b;
    }
}
